package org.lzy.aibg;


import org.junit.jupiter.api.Test;
import org.lzy.aibg.pojo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpingTest {
    @Test
    public void testStudent() {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring01.xml");
        User user = (User) context.getBean("user");
        user.sayHello();
    }
}
